<tagLib name="html" />
<include file="Public:header" />
<div id="main" class="main" >
	<script type="text/javascript"  charset="utf-8">
		function funResetPwd(){
			var pass	 =	 $('resetPwd').value;
			ThinkAjax.send('__URL__/resetPwd/','ajax=1&id={$vo.id}&password='+encodeURIComponent(pass),ajaxReturn);
		}
		function setSelectName(mc){
			var obj = document.getElementById('xqmc'); //selectid
			obj.value=mc;
		}
	</script>
	<div class="content">
		<div class="title">编辑帐号 [ <a href="__URL__">返回列表</a> ]</div>
		<form method='post' id="form1" >
			<table cellpadding=3 cellspacing=3>
			<tr>
				<td class="tRight">重置密码：</td>
				<td class="tLeft" >
					<input type="password" id="resetPwd" name="resetPwd" > 
					<input type="button" value="重置密码" onclick="funResetPwd()" class="submit" style="height:25px">
				</td>
			</tr>
			<tr>
				<td class="tRight" >用户名：</td>
				<td class="tLeft" ><input type="text" class="medium bLeftRequire"  check='^\S+$' warning="用户名不能为空,且不能含有空格" name="account" value="{$vo.account}"></td>
			</tr>
			<tr>
				<td class="tRight" >昵称：</td>
				<td class="tLeft" ><input type="text" class="medium bLeft" name="nickname" value="{$vo.nickname}"></td>
			</tr>
			<tr>
				<td class="tRight" >所属校区：</td>
				<td class="tLeft" >
					<select class="small bLeft" name="xq_id"  onChange="setSelectName(this.options[this.selectedIndex].text)">
						<option value="">未选择</option>
						<voList name="xqList" id="dict" >
							<option <eq name="dict.ITEM_KEY" value="$vo.xq_id" >selected</eq> value="{$dict.ITEM_KEY}">{$dict.text}</option>
						</voList>
					</select>
					<input type="hidden" id="xqmc" name="xqmc"  value="{$vo.xqmc}">
				</td>
			</tr>
			<tr>
				<td class="tRight" >用户类型：</td>
				<td class="tLeft" >
					<select class="small bLeft" name="type_id" >
						<option value="">未选择</option>
						<voList name="list" id="dict" >
							<option  <eq name="dict.ITEM_KEY" value="$vo.type_id" >selected</eq>  value="{$dict.ITEM_KEY}">{$dict.text}</option>
						</voList>
					</select>
				</td>
			</tr>
			<tr>
				<td class="tRight">状态：</td>
				<td class="tLeft">
					<SELECT class="small bLeft"  name="status">
						<option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
						<option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
					</SELECT>
				</td>
			</tr>
			<tr>
				<td class="tRight tTop">备  注：</td>
				<td class="tLeft"><TEXTAREA class="large bLeft"  name="remark" rows="5" cols="57">{$vo.remark}</textarea></td>
			</tr>
			<tr>
				<td></td>
				<td class="center"><input type="hidden" name="id" value="{$vo.id}">
				<input type="hidden" name="ajax" value="1">
				<div class="impBtn fLeft"><input type="button" value="保存" onclick="ThinkAjax.sendForm('form1','__URL__/update/',ajaxReturn)" class="save imgButton"></div>
				<div class="impBtn fRig"><input type="reset" class="reset imgButton" value="清空" ></div>
				</td>
			</tr>
			</table>
		</form>
	</div>
</div>